import request from '@/utils/request'

// 查询采购分配触发SPU列表
export function listTriggerSpu(query) {
  return request({
    url: '/productAllocation/triggerSpu/list',
    method: 'get',
    params: query
  })
}

// 查询采购分配触发SPU详细
export function getTriggerSpu(id) {
  return request({
    url: '/productAllocation/triggerSpu/' + id,
    method: 'get'
  })
}

// 新增采购分配触发SPU
export function addTriggerSpu(data) {
  return request({
    url: '/productAllocation/triggerSpu',
    method: 'post',
    data: data
  })
}

// 修改采购分配触发SPU
export function updateTriggerSpu(data) {
  return request({
    url: '/productAllocation/triggerSpu',
    method: 'put',
    data: data
  })
}

// 删除采购分配触发SPU
export function delTriggerSpu(id) {
  return request({
    url: '/productAllocation/triggerSpu/' + id,
    method: 'delete'
  })
}
